{extend name="public:layout" /}
{block name="title"}编辑货币{/block}
{block name="head"}
{:widget('common/Form/icheckRes')}
{:widget('common/Form/ueditorRes')}
{:widget('common/Form/validRes')}
{/block}
{block name="body"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li><i class="fa fa-hand-o-right"></i> <a href="{:url('index')}"> 货币列表</a></li>
                <li class="active">编辑货币</li>
            </ol>
        </div>
        <div class="ibox-content">
            <form method="post" class="form-horizontal" id="form">
                <input type="hidden" name="currency_id" value="{$info.currency_id}">
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">货币名称</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" placeholder="请输入货币名称"
                               name="currency_name" value="{$info.currency_name}" datatype="*"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">货币符号</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" placeholder="货币符号"
                               name="currency_symbol" value="{$info.currency_symbol}" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">货币汇率</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" placeholder="货币汇率"
                               name="currency_rate" value="{$info.currency_rate}" />
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-10 col-sm-offset-2">
                        <button class="btn btn-primary"
                                onclick="ajaxSubForm();" type="submit">
                            保存内容
                        </button>
                        <a href="{:url('index')}" class="btn btn-white">取消</a>
                        <span id="validError"></span>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
    $(function () {
        iCheck();
    })
</script>
{/block}